package com.example.toolproject.demo.service.serviceimpl;

import com.example.toolproject.demo.domain.LogMessage;
import com.example.toolproject.demo.mapper.LogMessageMapper;
import com.example.toolproject.demo.service.LogMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName LogMessageServiceImpl
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-05-21 14:50
 **/
@Service
public class LogMessageServiceImpl implements LogMessageService {

    @Autowired
    private LogMessageMapper logMessageMapper;

    @Override
    public boolean insertLog(LogMessage logMessage){
        return logMessageMapper.insertLog(logMessage);
    }

    @Override
    public List<LogMessage> getAll() {
        return logMessageMapper.getAll();
    }

}
